package scm.erp.core.exception;

import org.apache.tomcat.util.buf.StringUtils;

import java.util.Collection;

public class NotPermissionException extends RuntimeException {

    public NotPermissionException(String permission) {
        super(permission);
    }

    public NotPermissionException(Collection<String> permissions) {
        super(StringUtils.join(permissions, ','));
    }
}
